package com.wuhan.template.module.find.activity;


import android.graphics.Color;
import android.support.design.widget.TabLayout;
import android.support.v4.view.ViewPager;

import com.wuhan.template.R;
import com.wuhan.template.base.BaseActivity;
import com.wuhan.template.module.find.adapter.ZhengwuFragPagerAdapter;

import butterknife.BindView;


public class ZhengwuActivity extends BaseActivity {

    @BindView(R.id.table)
    TabLayout mTab;
    @BindView(R.id.zw_vp)
    ViewPager viewPager;

    @Override
    protected int getLayoutId() {
        return R.layout.activity_zhengwu_layout;
    }

    @Override
    protected void initViews() {
        mTab.setTabMode(TabLayout.MODE_SCROLLABLE);
        mTab.setSelectedTabIndicatorColor(Color.parseColor("#006EBF"));
        viewPager.setAdapter(new ZhengwuFragPagerAdapter(getSupportFragmentManager(),this));
        mTab.setupWithViewPager(viewPager);
    }

}
